/* Increase header/navbar height and title size */
.navbar {
	min-height: 60px !important;
	padding-top: 12px !important;
	padding-bottom: 12px !important;
	background-color: #6B46C1 !important; /* Purple background */
	border-bottom: 2px solid #7C3AED !important; /* Slightly lighter purple border */
}

/* Purple styling for navbar brand/text */
.navbar-header .navbar-brand,
.navbar .navbar-brand {
	font-size: 20px !important;
	font-weight: 600 !important;
	padding-top: 14px !important;
	padding-bottom: 14px !important;
	color: #FFFFFF !important; /* White text on purple */
}

.navbar-header .navbar-brand:hover,
.navbar .navbar-brand:hover {
	color: #E9D5FF !important; /* Light purple on hover */
}

/* Purple styling for navbar links */
.navbar-nav > li > a {
	padding-top: 18px !important;
	padding-bottom: 18px !important;
	color: #FFFFFF !important; /* White text */
}

.navbar-nav > li > a:hover,
.navbar-nav > li > a:focus {
	color: #E9D5FF !important; /* Light purple on hover */
	background-color: rgba(255, 255, 255, 0.1) !important; /* Subtle white overlay */
}

/* Keep top navbar items on a single line on desktop */
@media (min-width: 992px) {
	.navbar .container,
	.navbar .navbar-collapse {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center;
	}

	.navbar-header {
		flex: 0 0 auto;
	}

	.navbar-nav {
		display: flex !important;
		flex-wrap: nowrap !important;
		align-items: center;
	}

	.navbar-nav > li {
		white-space: nowrap;
	}

	.navbar-nav.navbar-right {
		margin-left: auto;
		display: flex !important;
		gap: 12px;
	}

	/* Slightly tighten horizontal padding to reduce wrapping risk */
	.navbar-nav > li > a {
		padding-left: 10px;
		padding-right: 10px;
		padding-top: 18px !important;
		padding-bottom: 18px !important;
	}
}

/* Hide "Edit on ..." text link, keep only GitHub repo link */
a[href*="/edit/"],
a[href*="edit/master"] {
	display: none !important;
}

/* Hide the list item containing edit link */
.navbar-right li:has(a[href*="edit"]) {
	display: none !important;
}

/* Fallback: hide any link with "edit" in href in navbar-right */
.navbar-right a[href*="edit"] {
	display: none !important;
}
